<?php

namespace App\Params\Backend;

use App\Params\Param;
/**
 * 等级修改参数
 *
 * @author: WangBin
 * @date: 2021/7/26
 * @mail: <849850352@qq.com>
 */
class GradeUpdateParam extends Param
{
    public $grade_id = 0;
    public $store_id = 1;
    public $grade_name;
    public $grade_bn;
    public $is_active = 1;
    public $remark;
    public $condition;

    public function rules()
    {
        return [
            'grade_name' => 'required|string',
            'is_active' => 'boolean',
            'grade_bn' => 'nullable|string',
            'grade_id' => 'nullable|integer',
            'store_id' => 'nullable|integer',
            'remark' => 'nullable|string',
            'condition' => 'nullable|numeric'
        ];
    }

    /**
     * @return mixed
     */
    public function getCondition()
    {
        return $this->condition;
    }

    /**
     * @param mixed $condition
     */
    public function setCondition($condition): void
    {
        $this->condition = $condition;
    }

    /**
     * @return int
     */
    public function getGradeId(): int
    {
        return $this->grade_id;
    }

    /**
     * @param int $grade_id
     */
    public function setGradeId(int $grade_id): void
    {
        $this->grade_id = $grade_id;
    }

    /**
     * @return int
     */
    public function getStoreId(): int
    {
        return $this->store_id;
    }

    /**
     * @param int $store_id
     */
    public function setStoreId(int $store_id): void
    {
        $this->store_id = $store_id;
    }

    /**
     * @return mixed
     */
    public function getGradeName()
    {
        return $this->grade_name;
    }

    /**
     * @param mixed $grade_name
     */
    public function setGradeName($grade_name): void
    {
        $this->grade_name = $grade_name;
    }

    /**
     * @return mixed
     */
    public function getGradeBn()
    {
        return $this->grade_bn;
    }

    /**
     * @param mixed $grade_bn
     */
    public function setGradeBn($grade_bn): void
    {
        $this->grade_bn = $grade_bn;
    }

    /**
     * @return int
     */
    public function getIsActive(): int
    {
        return $this->is_active;
    }

    /**
     * @param int $is_active
     */
    public function setIsActive(int $is_active): void
    {
        $this->is_active = $is_active;
    }

    /**
     * @return mixed
     */
    public function getRemark()
    {
        return $this->remark;
    }

    /**
     * @param mixed $remark
     */
    public function setRemark($remark): void
    {
        $this->remark = $remark;
    }
}
